//
//  BIZRecruitCollectionCell.m
//  biz
//
//  Created by LXL on 2017/6/13.
//  Copyright © 2017年 jieshuibao. All rights reserved.
//

#import "BIZRecruitCollectionCell.h"
#import "BIZRecruitModel.h"

@interface BIZRecruitCollectionCell()
@property (weak, nonatomic) IBOutlet UILabel *positionLabel;
@property (weak, nonatomic) IBOutlet UILabel *salaryLabel;

@end

@implementation BIZRecruitCollectionCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
//    self.contentView.backgroundColor = [UIColor blueColor];
}

- (void)setPositionModel:(BIZPositionModel *)positionModel {
    _positionModel = positionModel;
    self.positionLabel.text = positionModel.position;
    if ([positionModel.faceTalk isEqualToString:@"0"]) {
        self.salaryLabel.text = @"面议";
    } else {
        self.salaryLabel.text = [NSString stringWithFormat:@"%ld~%ld元", (long)positionModel.minMoney,  (long)positionModel.maxMoney];
    }
}

- (void)layoutSubviews {
    [super layoutSubviews];
//    self.size = CGSizeMake(App_Frame_Width-67, 35);
}

@end
